#include <QMainWindow>
#include <QtGui>
#include <QObject>
#include "BigNum.h"

class MainWindow : public QMainWindow
{
    Q_OBJECT
private:
    void createMenus();
    void createActions();
    void createStatusBar();
    QMenu *fileMenu;
    QMenu *editMenu;
    QMenu *helpMenu;
    QAction *newAct;
    QAction *openAct;
    QAction *saveAct;
    QAction *saveAsAct;
    QAction *exitAct;
    QAction *aboutAct;
   // QStatusBar * statusBar;
public:
    LongNum a,b;
    explicit MainWindow(QWidget *parent = 0);
    ~MainWindow();
    QLineEdit *Line, *Memory;
    QFont s;
    //friend void keyPressEvent(QKeyEvent * event);
private slots:
    void one();
    void two();
    void three();
    void four();
    void five();
    void six();
    void seven();
    void eight();
    void nine();
    void zero();
    void threezeros();
    void clear();
    void CE();
    void plus();
    void multiply();
    void minus();
    void equal();
    void div();
    void mod();
    void nul();
    void UpdateToolTip();
    void Squared();
    void Cubed();
    void Backspace();
    void Power();
    void MC();
    void MS();
    void MR();
    void Mplus();
    void startLog();
    void stopLog();
    void NewToolTip();
    void setFocusBegin();
    void Exit();
    //void CheckFont();
protected:
   // void keyPressEvent(QKeyEvent *event);

signals:
        void signul();
};
